<script setup lang="ts">
import global from '@/assets/scss/global.module.scss'
import DetectionApi from '@/axios/detection/DetectionApi.ts'
import { useTestStore } from '@/store'
const env = import.meta.env
const instance = getCurrentInstance()
window.$message.info('Hello World', { duration: 2400 })
onMounted(() => {
  let { BoxTheme } = useTestStore()
  console.log(BoxTheme)
  console.log(instance)
  console.log(global.test)
  console.log(env)
  DetectionApi.health().then((res) => {
    console.log(res)
  })
})
</script>

<template>
  <span class="desc">VUE3 + VITE</span>
  <n-button type="error"> Error </n-button>
</template>

<style scoped lang="scss">
.desc {
  color: $test;
  font-family: '楷体', serif;
}
</style>
